/**
 * Copyright (c) 2013 onionframework.org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.onionframework.core.event;

import org.onionframework.event.Observer;
import org.springframework.stereotype.Component;

/**
 * 测试用的事件监听者
 * @author allan
 *
 */
@Component
public class EventObserver {

	private boolean simpleEventFired = false;
	private String simpleEventParam;
	
	@Observer(EventsTest.EVENT_KEY_SIMPLE)
	public void listener(String eventParam){
		this.simpleEventFired = true;
		this.simpleEventParam = eventParam;
	}

	public boolean isSimpleEventFired() {
		return simpleEventFired;
	}

	public String getSimpleEventParam() {
		return simpleEventParam;
	}

}
